<?php

	include 'cpr/cproject.php';

	CoreProject::Using('db.mysql');

	$db_config = new cpr_Db_SqlConfig('localhost', 'root', 'root', 'test_db');
	$db_connector = new cpr_Db_MySql($db_config);

	if ($db_connector->Query('SELECT * FROM test_table'))
	{
		$row = null;
		$rows = $db_connector->GetRecords();
		for ($i = 0, $c = count($rows); $i < $c; $i++)
		{
			$row = $rows[$i];
			echo ($i + 1).') '.$row->test_column;
		}
	}
	else
	{
		echo $db_connector->GetError();
	}